<!----------------------------- Paginas ---------------------------------->
	<?php
		if ($_SESSION['total']> 1): 
    ?>		
		<div class="pagination">
		<ul>
    <?php   	
		if ($_SESSION['pagina']>=$_SESSION['total']):
	?>
		<li><a href="<?php echo LOCALHOST; ?>?pagina=1" class="paginate">Inicio</a></li>
	<?php		
		endif; 	
		if ($_SESSION['pagina'] != 1):
	?>		
		<li><a href="<?php echo LOCALHOST; ?>?pagina=<?php echo ($_SESSION['pagina']-1);?>" class="paginate">Anterior</a></li>
	<?php		
		endif; 	
		for ($i=1;$i<=$_SESSION['total']; $i++):  
			if ($_SESSION['pagina'] ==$i):
    ?>			
		<li class="active"><a><?php echo $_SESSION['pagina']; ?></a></li>
	<?php		
		else:
    ?>		
		<li><a href="<?php echo LOCALHOST; ?>?pagina=<?php echo $i;?>" class="paginate"><?php echo $i; ?></a></li>
	<?php
		endif; 
		endfor; 		
		if ($_SESSION['pagina'] != $_SESSION['total']):
    ?>		
		<li><a href="<?php echo LOCALHOST; ?>?pagina=<?php echo ($_SESSION['pagina']+1);?>" class="paginate">Siguiente</a></li>
		<li><a href="<?php echo LOCALHOST; ?>?pagina=<?php echo  $_SESSION['total']?>" class="paginate">Fin</a></li>
	<?php	
		endif; 	
		endif;
    ?>		
<!-------------------------------Fin Paginas------------------------------------>